fn main() {
    // 结构体
    struct Foo {
        x: (u32, u32),
        y: u32,
    }

    let foo = Foo { x: (1, 2), y: 3 };
    let Foo { x: (a, b), y } = foo;
    println!("{} {} {}", a, b, y);
    let Foo { y: i, x: j } = foo;
    println!("{}", i);
    println!("{:?}", j);

    let Foo { y, .. } = foo;
    println!("{}", y);
}
